{layout name="layout" /}

<div class="col-md-12 col-sm-12" style="margin-top:20px;">
    <div class="bs-example" data-example-id="contextual-table">
        <table class="table .table-responsive" border="1px">
            <thead>
                <tr>
                    <th>楼栋</th>
                    <th>楼层</th>
                    <th>房屋</th>
                </tr>
            </thead>
            <tbody>
                {volist name="rows" id="row" key="k"}
                <tr>
                    <th>{$build}</th>
                    <td>{$row['floor']}</td>
                    <td>
                        {volist name="row" id="vo"}
                        {if condition="isset($vo.newroom)"}
                        <button class="btn {if condition='$vo.status eq 1'}
                        btn-danger {else /} btn-default
                        {/if} btn-xs">{$vo.newroom}</button>
                        {/if}
                        {/volist}
                    </td>
                </tr>
                {/volist}
            </tbody>
        </table>
    </div>
</div> <!-- /.col-md-12 -->
